<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>Reflect</h1>
</body>
<script>
    const user={
        name:'jack',
        age:20
    }

    // 读取对象属性
    console.log(Reflect.get(user,'name'));
    // 修改属性值
    Reflect.set(user,'age',30);
    console.log(user);
</script>
</html>